package com.fudan.gamestore.mapper;

import com.fudan.gamestore.pojo.OrderItem;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderItemMapper {
    List<OrderItem> getOrderItemsByOrderId(@Param("orderId") Integer orderId);

    int deleteOrderItemsByOrderId(@Param("orderId") Integer orderId);

    int insertOrderItems(@Param("orderItems") List<OrderItem> orderItems);

    List<Integer> getGameIdListByOrderId(@Param("orderId") Integer orderId);
}
